#ifndef APPLYFRIENDITEM_H
#define APPLYFRIENDITEM_H

#include "listitembase.h"
#include "userdata.h"
#include <QWidget>
#include <memory>

namespace Ui
{
class ApplyFriendItem;
}

class ApplyFriendItem : public ListItemBase
{
    Q_OBJECT

public:
    explicit ApplyFriendItem(QWidget *parent = nullptr);
    ~ApplyFriendItem();
    void SetInfo(std::shared_ptr<ApplyInfo> apply_info);
    void ShowAddBtn(bool bshow);
    QSize sizeHint() const override;
    int GetUid();

signals:
    void sig_auth_friend(std::shared_ptr<ApplyInfo> apply_info);

private:
    Ui::ApplyFriendItem *ui;
    std::shared_ptr<ApplyInfo> _apply_info;
    bool _added;
};

#endif  // APPLYFRIENDITEM_H
